﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DesktopLauncher
{
    /// <summary>
    /// Adding properties (runpath) and constructor
    /// </summary>
    public class MenuItemExtended : ToolStripMenuItem
    {
        public MenuItemExtended Parrent;
        public string ImagePath;
        public string RunPath;

        /// <summary>
        /// Delete this menu and his submenu items
        /// </summary>
        public void Delete()
        {
            this.DropDownItems.Clear();
            this.Parrent.DropDownItems.Remove(this);
            GC.Collect();
        }
    }
}
